package com.pureut.storage.controller;


import com.pureut.storage.dto.NewStockInfoDetailDto;
import com.pureut.storage.service.StockInfoDetailService;
import com.sale.common.core.web.controller.BaseController;
import com.sale.common.mybatis.core.page.PageQuery;
import com.sale.common.mybatis.core.page.TableDataInfo;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * 领料出库明细控制层
 * @author: CM
 * @date: 2023/1/19  9:05
 */
@RestController
@RequestMapping("/stockInfoDetail")
public class StockOutInfoDetailController extends BaseController {

    @Resource
    StockInfoDetailService stockInfoDetailService;

    /**
     * 查询生产领料列表
     */
    @GetMapping("/list")
    public TableDataInfo<NewStockInfoDetailDto> getList(String docNum, PageQuery pageQuery) {
        //查询生产领料列表
        return stockInfoDetailService.getList(docNum,pageQuery);
    }

}
